/**
*    This file is part of Basic Service.
*
*    Basic Service is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*
*    Basic Service is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with Basic Service (See GPL.txt).  If not, see <http://www.gnu.org/licenses/>.
*    
* 	If needed the author is Amir Zucker and can be reached at amirzucker1@gmail.com or amirzucker.wordpress.com
*/
package com.basicservice.service;

import com.google.common.collect.ImmutableSet;

/**
 * A class to hold all the constants in the system
 */

public class Constants {
	public static final String AUTHENTICATED_SESSION_ID_COOKIE = "TS_AUTH_SID";
	public static final int ONE_YEAR_COOKIE = 60*60*24*365;
	public static final String SUPPORT_BASICSERVICE = "support@basicservice.com";	
	public static final String CSRF_TRANSPORT_NAME = "X-XSRF-Cookie";
	public static final String MLS_REGISTRATION_CONFIRMATION_SUBJECT = "email.registrationConfirmation.subject";	
	public static final String MLS_REGISTRATION_CONFIRMATION_HTML = "email.registrationConfirmation.html";
	public static final String MLS_PASSWORD_RESET_SUBJECT = "email.passwordReset.subject";	
	public static final String MLS_PASSWORD_RESET_HTML = "email.passwordReset.html";
	public static final String CSRF_SECURE = "csrf_secure_check";
	public static final String CSRF_RANDOM_SEED_KEY = "csrf_random_seed";
	public static final String LOCALE_KEY = "locale";
	public static final String USER_ATTRIBUTE = "request-attribute:user";
	public static final ImmutableSet<String> csrfValidatedMethods = ImmutableSet.of(
			"post",
			"put",
			"delete"
			);
	public static final String ADMIN_EMAIL_CONFIRMATION_FAILURE_REDIRECT = "/admin/?message=ConfirmationFailure";
	public static final String ADMIN_EMAIL_CONFIRMATION_SUCCESS_REDIRECT = "/admin/?message=ConfirmationSuccess";
	public static final String NOTIFICATIONS_HEADER_PREFIX = "notifications.header.";
	public static final String NOTIFICATIONS_MESSAGE_PREFIX = "notifications.message.";
}

